#ifndef SERIAL_H
#define SERIAL_H


//#define DEV_PIO "/dev/gpio0"

#define SERIAL0 	"/dev/ttyS1" //com0
#define SERIAL1   	"/dev/ttyS2" //com1
#define SERIAL2 	"/dev/ttyS3" //com2
#define SERIAL3 	"/dev/ttyS4" //com3
/***********************************/
#define  RS485  0020000//rs485
#define  Normal 0020001//normal
#define  HWHD	0020002//hardware handing
#define	 Modem  0020004//modem
#define  ISO7816T0 0020010//iso7816 t=0
#define  ISO7816T1 0020020//iso7816 t=1
#define  IrDA	   0020040//IrDA	
/***********************************/

int set_gpio();
int set_speed(int fd, int speed);
int set_other_attribute(int fd, int databits, int stopbits, int parity, int mode, char timeOut);

#endif
